home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
program
/
gcc
/
gcc270-d.lha
/
gnu
/
man
/
cat3
/
valloc.0
< prev
next >
Wrap
Text File
|
1992-08-10
|
1KB
|
67 lines
VALLOC(3) UNIX Programmer's Manual VALLOC(3)
NNAAMMEE
vvaalllloocc - aligned memory allocation function
SSYYNNOOPPSSIISS
##iinncclluuddee <<uunniissttdd..hh>>
_c_h_a_r _*
vvaalllloocc(_u_n_s_i_g_n_e_d _s_i_z_e)
DDEESSCCRRIIPPTTIIOONN
VVaalllloocc iiss oobbssoolleetteedd bbyy tthhee ccuurrrreenntt vveerrssiioonn ooff mmaalllloocc((33)),, wwhhiicchh aalliiggnnss
ppaaggeessiizzeedd aanndd llaarrggeerr aallllooccaattiioonnss..
The vvaalllloocc() function allocates _s_i_z_e bytes aligned on a page boundary.
It is implemented by calling malloc(3) with a slightly larger request,
saving the true beginning of the block allocated, and returning a proper
ly aligned pointer.
RREETTUURRNN VVAALLUUEESS
The vvaalllloocc() function returns a pointer to the allocated space if suc
cessful; otherwise a null pointer is returned
HHIISSTTOORRYY
The vvaalllloocc() function appeared in 3.0BSD.
BBUUGGSS
A _v_f_r_e_e function has not been implemented.
3rd Berkeley Distribution April 19, 1991 1